﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
            
            
        
    }
    protected void ddl_SelectedIndexChanged(object sender, Telerik.Web.UI.DropDownListEventArgs e)
    {

    }
    protected void RadButton1_Click(object sender, EventArgs e)
    {
        BVVDDataContext db = new BVVDDataContext();
        var list = (from hv in db.LST_HOCVIENs
                    select new
                    {
                        NAME = hv.HODEM + " " + hv.TENHV + " " + hv.MAHV,
                        VALUE = hv.MAHV
                    }).ToList();
        a1.DataSource = list;
        a1.DataTextField = "NAME";
        a1.DataValueField = "VALUE";
    }
}